<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSetTopTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('set_top_rule', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('num')->default(0)->comment('置顶使用的金额或者积分');
            $table->string('type')->nullable()->comment('money or integral');
            $table->integer('hours')->default(0)->comment('置顶小时数');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
